package com.bwie.list.service.impl;

import com.bwie.common.domain.po.Food;
import com.bwie.common.domain.po.Order;
import com.bwie.list.mapper.OrderMapper;
import com.bwie.list.service.OrderService;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<Order> findOrderList() {
        return orderMapper.findOrderList();
    }

    @Override
    public void addOrder(Order order) {
        orderMapper.addOrder(order);
    }

    @Override
    public void delOrder(Integer orderId) {
        orderMapper.delOrder(orderId);
    }


}
